﻿// STATS MODULE
//      Luca Puccini
//      Marco Cornolti
//      Michele Sottile
//      Matteo Parchi

// USER PROFILE OBJECT

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Stats.Objects
{
    /// <summary>
    /// Represents the UserProfile object wich contains user feedback and statistic
    /// </summary>

    public class UserProfile
    {
        
        /// <summary>
        /// AsDriverFeedback object
        /// </summary>
        public AsDriverFeedback DriverFeedback {get; set; }


        /// <summary>
        /// AsPassengerFeedback object
        /// </summary>
        public AsPassengerFeedback PassengerFeedback {get; set; }


        /// <summary>
        /// UserStas object
        /// </summary>
        public UserStats UserStats {get; set; }

        /// <summary>
        /// Constructor for the UserProfile object with user feedbacks as driver and passenger and statistics
        /// </summary>
        /// <param name="driver_fdb">User AsDriverFeedback object</param>
        /// <param name="psn_fdb">User AsPassengerFeedback object</param>
        /// <param name="user_stats">UserStats object</param>
        /// <example>
        /// <code>
        /// AsDriverFeedback psnFdb = new AsDriverFeedback("Mark81",(4.9),(6.5),(5.7),(8.5),8);
        /// AsPassengerFeedback psnFdb = new AsPassengerFeedback("Mark81",(7.9),(8.5),(5.7),7);
        /// UserStats usSt = new UserStats("Mark81",5000,100,136,(1.32),8,12,15,4,23,4,500);
        /// UserProfile usPr = new userProfile(drvFdb,psnFdb,usSt);
        /// </code>
        /// </example> 
        public UserProfile (AsDriverFeedback driver_fdb, AsPassengerFeedback psn_fdb, UserStats user_stats)
        {
            DriverFeedback = driver_fdb;
            PassengerFeedback = psn_fdb;
            UserStats = user_stats;
        }
     
                
    }
}
